#include "Plane.h"

namespace WuguiEngine
{
	namespace Math
	{
		Plane::Plane()
		{
			Normal = D3DXVECTOR3();
			D = 0.0f;
		}

		Plane::Plane(D3DXVECTOR3 normal, float d)
		{
			Normal = normal;
			D = d;
		}

		Plane::Plane(float a, float b, float c, float d)
		{
			Normal = D3DXVECTOR3(a, b, c);
			D = d;
		}

		D3DXPLANE Plane::GetD3DXPlane()
		{
			return D3DXPLANE(Normal.x, Normal.y, Normal.z, D);
		}
	}
}